set ylabel "Time (s)"
set xlabel "Iteration"
set title "Time spent in MPIBarrier before MPIAllgather, p=24, n=640k"
set nokey
#set size 0.6, 0.6
#set lmargin 0
#set size square

set terminal postscript eps enhanced color "NimbusSanL-Regu" 12 
set output 'barrier.eps'

plot "barrier 0.history" with lines,\
     "barrier 1.history" with lines,\
     "barrier 2.history" with lines,\
     "barrier 3.history" with lines,\
     "barrier 4.history" with lines,\
     "barrier 5.history" with lines,\
     "barrier 6.history" with lines,\
     "barrier 7.history" with lines,\
     "barrier 8.history" with lines,\
     "barrier 9.history" with lines,\
     "barrier10.history" with lines,\
     "barrier11.history" with lines,\
     "barrier12.history" with lines,\
     "barrier13.history" with lines,\
     "barrier14.history" with lines,\
     "barrier15.history" with lines,\
     "barrier16.history" with lines,\
     "barrier17.history" with lines,\
     "barrier18.history" with lines,\
     "barrier19.history" with lines,\
     "barrier20.history" with lines,\
     "barrier21.history" with lines,\
     "barrier22.history" with lines,\
     "barrier23.history" with lines

!epstopdf barrier.eps
